import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class test1 {
    public static void main(String[] args) {
        BCryptPasswordEncoder passwordEncoder=new BCryptPasswordEncoder();
        System.out.println(passwordEncoder.encode("123"));
        System.out.println(passwordEncoder.matches("1234", "$2a$10$KuRy.4UP6FzGHJBaTc2K5.3XiB4WemmKS3/zIHnLnmRtt7Sxw1m5G"));
    }
}
